<div class="well form-signin">
    <h2 class="form-signin-heading">Login</h2>
    <?php
    echo validation_errors('<div class="error">', '</div>');
    if ($this->session->flashdata('error')) {
        echo "<div class='message'>";
        echo $this->session->flashdata('error');
    }
    $datosUsr = array(
        'id' => 'username',
        'name' => 'username',
        'size' => '15',
        'maxlength' => '25',
        'class' => 'form-control',
        'placeholder' => 'Cedula',
        'type' => 'text',
        'required' => 'true'
    );
    $datosClave = array(
        'id' => 'clave',
        'name' => 'clave',
        'size' => '15',
        'maxlength' => '25',
        'placeholder' => 'Clave',
        'class' => 'form-control',
        'type' => 'text',
        'required' => 'true'
    );

    $btnLogin = array('type' => 'submit', 'class' => 'btn btn-lg btn-primary btn-block', 'value' => 'Ingresar');
    echo form_open('login/logear');
    echo form_input($datosUsr) . '</br>';
    echo form_password($datosClave) . '</br>';
    echo form_submit($btnLogin);
    echo form_close();
    echo '<div class="row-fluid">';
    echo '<div class="col-sm-6">';
    echo anchor("usuario_paciente_controller/crear", 'registrarse');
    echo '</div>';
    echo '<div class="col-sm-6">';
    echo anchor("login/invitado", 'invitado');
    echo '</div>';
    echo '<div class="row-fluid">';
    ?>
</div> 



